#!/usr/bin/env python
# -*- coding:utf-8 -*- 
# Author: Jeokayne Ataier

import socket

client = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
while True:
    d = input("是否继续？")
    if d == "n":
        break
    client.sendto("hello".encode("utf-8"),("127.0.0.1",8881))
    data,(host,port) = client.recvfrom(1024)
    print(data.decode("utf-8"))

client.close()


